﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Top.PointStore.Business.Models.DuibaModel
{
    /// <summary>
    /// 违规查询响应Model
    /// </summary>
    public class ViolationResponse
    {
        /// <summary>
        /// 查询的结果，查询成功返回true，失败返回false
        /// </summary>
        public bool success { get; set; }

        /// <summary>
        /// 出错原因
        /// </summary>
        public string message { get; set; }

        /// <summary>
        /// 用户注册时间，格式：2015-04-01 10:00:00
        /// </summary>
        public DateTime create_date { get; set; }

        /// <summary>
        /// 二级json参数
        /// </summary>
        public List<AddRecord> add_records { get; set; }
    }

    public class AddRecord
    {
        /// <summary>
        /// 获取积分数值
        /// </summary>
        public int credits { get; set; }

        /// <summary>
        /// 获取积分原因
        /// </summary>
        public string reason { get; set; }

        /// <summary>
        /// 获取积分时间，格式：2015-04-01 10:00:00
        /// </summary>
        public DateTime time { get; set; }
    }
}
